package d0904;

public class Object类 {
    public static void main(String[] args) {

        Object o = new Object();
        Object y = new Object();
        o.equals(y);  // equals 比较对象的内容是否相同

        Student s1 = new Student();
        s1.setHeight(1.85f);
        s1.setGender('男');

        Student s2 = new Student();
        s2.setHeight(1.85f);
        s2.setGender('男');

        System.out.println(s1.equals(s2));

        System.out.println(s1);

        /**
         * == 比较
         * 	1. 基本数据类型  => 比较 值
         * 	2. 引用数据类型 => 比较 地址
         */



    }
}
